﻿namespace Yz.Base
{
    public class ApiData<T> where T : class
    {
        public string Errcode { get; set; }

        public string Errmsg { get; set; }
        public int Total { get; set; }

        public T Data { get; set; }
    }

    public struct ApiDataCode
    {
        public const string Success = "10"; //成功
        public const string Error = "-1"; //失败 
        public const string TokenFail = "00";
    }

    public struct ApiDataMsg
    {
        public const string Success = "成功";
        public const string Error = "失败";
        public const string TokenFail = "token无效";
    }
}
